﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AM_QLSP.aspx.cs" Inherits="QuanLyBanGiay.AM_QLSP" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="border: 1px inherit black auto; text-align: center; height: 50px; width: 100%">
        <tr>
            <td>Loại :&nbsp;&nbsp;
                <asp:DropDownList ID="cboLoai" runat="server" Width="90px">
                </asp:DropDownList>&nbsp;&nbsp;
                Tên sản phẩm :&nbsp;&nbsp;
                <asp:TextBox ID="txtTenSP" runat="server" Width="130px"></asp:TextBox>&nbsp;
                <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Width="80px"
                    OnClick="btnTimKiem_Click" />
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td>
                <asp:Button ID="btnThemSP" runat="server" Text="Thêm sản phẩm"
                    OnClick="btnThemSP_Click" Height="30px" Width="145px" />
                <asp:GridView ID="gvSP" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="id" OnPageIndexChanging="gvSP_PageIndexChanging" OnSelectedIndexChanged="gvSP_SelectedIndexChanged" Width="691px" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None">
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="Mã sản phẩm">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="name" HeaderText="Tên sản phẩm" />
                        <asp:BoundField DataField="content" HeaderText="Nội dung" />
                        <asp:BoundField DataField="price" HeaderText="Giá" />
                        <asp:BoundField DataField="image" HeaderText="image" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="lblEdit" runat="server" Text="Sửa"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("id")%>' OnClick="lnkEdit_Click" Text="Sửa"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    <PagerStyle HorizontalAlign="Right" BackColor="#C6C3C6" ForeColor="Black" />
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#594B9C" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#33276A" />
                </asp:GridView>

            </td>
        </tr>

    </table>
</asp:Content>
